/**
 * VYPe11 Project
 * VYPe11 language compiler.
 * Authors: Jozef Lang (xlangj01), 
 * 			Zoltan Zemko (xzemko01)
 * 2011
 */
package cz.vutbr.fit.VYPe.team18.VYPe11.nodes.expression.bracket;

import java.io.IOException;

import cz.vutbr.fit.VYPe.team18.VYPe11.exception.SematicException;
import cz.vutbr.fit.VYPe.team18.VYPe11.nodes.data_type.DataType;
import cz.vutbr.fit.VYPe.team18.VYPe11.nodes.expression.ExpressionNode;

public class BracketNode extends ExpressionNode {
	private ExpressionNode expression;
	
	public BracketNode(ExpressionNode expression) {
		this.expression=expression;
	}

	public ExpressionNode getExpression() {
		return expression;
	}

	@Override
	public DataType getType() throws SematicException {
		return expression.getType();
	}
	
	@Override
	public void generateTAC() throws IOException {
		this.expression.generateTAC();
		// dalo by sa sem dat TAC priradenie, ale je to zbytocne :P
	}
}
